package cn.wolfcode.mapper;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;

import java.util.List;

/**
 * 权限
 */
public interface PermissionMapper {
    //    根据id删除权限
    int deleteByPrimaryKey(Long id);

    //新增权限
    int insert(Permission record);

    //根据id查询
    Permission selectByPrimaryKey(Long id);

    //    查询所有
    List<Permission> selectAll();

    //    更新权限
    int updateByPrimaryKey(Permission record);

    //    根据角色id查询
    List<Permission> selectByRid(Long rid);

    List<String> selectByEid(Long eid);

    //根据条件查询
    List<Permission> selectAllByQO(QueryObject qo);

    List<String> selectAllExpression();
}